import request from '@/utils/request'
import requestMy from '@/utils/requestMy'

export function getColumnList(query) {
  return requestMy({
    url: '/columns',
    method: 'get',
    params: query
  })
}

export function getOneColumn(id,query) {
  return requestMy({
    url: '/columns/'+id,
    method: 'get',
    params: query
  })
}

export function getColumnListCount(query) {
  return requestMy({
    url: '/columns/count',
    method: 'get',
    params: query
  })
}


export function createColumn(data) {
  return requestMy({
    url: '/columns',
    method: 'post',
    data
  })
}

export function updateColumn(data) {
  return requestMy({
    url: '/columns',
    method: 'put',
    data
  })
}


